package org.hpm.modules.demo.test.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hpm.modules.demo.test.entity.HpmDemo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @description: jeecg 测试demo
 * @author: jacklin
 * @date: 2018-12-29
 * @version: V1.0
 */
public interface HpmDemoMapper extends BaseMapper<HpmDemo> {

    List<HpmDemo> getDemoByName(@Param("name") String name);

    /**
     * 查询列表数据 直接传数据权限的sql进行数据过滤
     *
     * @param page
     * @param permissionSql
     * @return
     */
    IPage<HpmDemo> queryListWithPermission(Page<HpmDemo> page, @Param("permissionSql") String permissionSql);

}
